package driver.nxt.action;

import driver.actions.TurnLeftAction;
import driver.exceptions.ExecuteException;
import driver.nxt.NXTController;

/**
 * Turns the NXT left while moving forward/backward
 *
 * @author David Martin
 */
public class NXTTurnLeftAction extends TurnLeftAction
{

  private NXTController controller;

  /**
   *
   * @param controller the NXT controller
   */
  public NXTTurnLeftAction(NXTController controller)
  {
    this.controller = controller;
  }

  /**
   * Instruct the controller to change the turn offset
   *
   * @throws driversuite.exceptions.ExecuteException
   */
  public void execute() throws ExecuteException
  {
    controller.setTurnOffset(-45);
  }
}
